/* ChatApp.css */
.chat-container {
    display: flex;
    flex-direction: column;
    width: 800px;
    margin: 0 auto;
    background: #ffffff;
}

.chat-header {
    background: #fff;
    padding: 0 12px;
    z-index: 1;
    position: sticky;
    top: 0;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.header-title {
    margin: 0 0 0 16px;
    color: #262626;
    max-width: 800px;
}

.chat-content {
    overflow-y: auto;
    padding: 24px;
    background: #fff;
    height: 65vh;
}

.message-item {
    margin: 12px 0;
    display: flex;
    justify-content: flex-start;
}

.message-item.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    display: flex;
    align-items: flex-start;
}

.message-item.user .message-content {
    flex-direction: row-reverse;
}

.message-avatar {
    margin: 0 12px;
}

.message-bubble {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.message-item.user .message-bubble {
    background: #1890ff;
    color: white;
}

.message-text {
    word-break: break-word;
    white-space: pre-wrap;
}

.message-time {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    margin-top: 8px;
    text-align: right;
}

.message-item.user .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-footer {
    padding: 16px 24px;
    background: #fff;
}

.input-container {
    display: flex;
    gap: 16px;
}

.send-button {
    align-self: flex-end;
    height: auto;
}

/* MessagesList.module.css */
.chatContainer {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 12px;
}

/* 基础消息样式 */
.messageBubble {
    margin: 15px 0;
    padding: 12px 18px;
    border-radius: 15px;
    position: relative;
    word-break: break-word;
    animation: fadeIn 0.3s ease-in;
}

/* 发送消息（右侧）*/
.sent {
    background: #eff6ff;
    color: #262626;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-flex;
}

.received_show_skContent {
    color: #8b8b8b;
    white-space: pre-wrap;
    margin: 0;
    padding: 0 0 0 13px;
    line-height: 26px;
    position: relative;
}

.received_show_skContentLiner {
    border-left: 2px solid #e5e5e5;
    height: calc(100% - 10px);
    margin-top: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

/* 接收消息（左侧）*/
.received_show_sk {
    cursor: pointer;
    margin-right: auto;
    color: rgb(38 38 38);
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 18px;
    user-select: none;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    display: flex;
    background: rgb(245 245 245);

}

.actionBar {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
}

/* 发送消息操作按钮在左侧 */
.sent .actionBar {}

/* 接收消息操作按钮在右侧 */
.received .actionBar {}

.messageBubble:hover .actionBar {
    opacity: 1;
}

/* 图标颜色适配 */
.sent .anticon {
    color: rgba(255, 255, 255, 0.8);
}

.received .anticon {
    color: rgba(0, 0, 0, 0.6);
}

// .messageBubble::after {
//     transition: transform 0.2s;
// }

// .messageBubble:hover::after {
//     transform: translateX(2px);
// }

.AnsweringAis_left_btn {
    align-items: center;
    margin-bottom: 34px;
    display: flex;

    .AnsweringAis_left_btnStyle {
        --local-button: rgb(219 234 254);
        --local-button-text: #4d6bfe;
        --local-button-hover: #c6dcf8;
        color: #4d6bfe;
        background-color: var(--local-button);
        cursor: pointer;
        width: -moz-fit-content;
        height: 44px;
        border-radius: 14px;
        flex-shrink: 0;
        align-items: center;
        width: fit-content;
        margin: 0 2px 0 14px;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        display: flex;
        overflow: hidden;

        .AnsweringAis_icon_style {
            font-size: 24px;
            margin-right: 8px;
        }

        .AnsweringAis_left_btn1 {
            align-items: center;
            height: 100%;
            padding: 0 10px;
            display: flex;
        }

    }
}